<?php if ($this->pageCount > 1): ?>
    <div class="paginationControl">
        <!-- Previous page link -->
        <?php if ($this->pageCount > 1): ?>
            <?php if (isset($this->previous)): ?>
                <a href="<?php echo $this->url(array('page' => $this->previous)); ?>">&lt; 前一页</a>
            <?php else: ?>
                <span class="disabled">&lt; 前一页</span>
            <?php endif; ?>
        <?php endif; ?>
        <!-- Numbered page links -->
        <?php
        foreach ($this->pagesInRange as $page) {
            if ($page != $this->current) {
                $pages[] = '<a href="' . $this->url(array('page' => $page)) . '">' . $page . '</a>';
            } else {
                $pages[] = '<span class="current">' . $page . '</span>';
				//$page;
            }
        }
        echo implode('', $pages);
        ?>
        <?php if ($this->pageCount > 1): ?>
            <!-- Next page link -->
            <?php if (isset($this->next)): ?>
                <a href="<?php echo $this->url(array('page' => $this->next)); ?>">后一页 &gt;</a>
            <?php else: ?>
                <span class="disabled">后一页 &gt;</span>
            <?php endif; ?>
        <?php endif; ?>
    </div>
<?php endif; ?>